if SERVER then
	function ACHIEVEMENT:PlayerHeal(ply, targ, amt)
		if !IsValid(ply) || !ply:IsPlayer() then return end
	
		local points = self:GetValue(ply, "points", 0)
		self:SetValue(ply, "points", points + amt)
	end
	
	function ACHIEVEMENT:SendUpdate(ply, last)
		local points = self:GetValue(ply, "points", 0)
		if points - (last or 0) > 100 then
			return points - (last or 0), points
		end
	end
end
if CLIENT then
	local target = 5000

	ACHIEVEMENT.Name			= "Incursion: Field Medic"
	ACHIEVEMENT.Description		= "Heal "..target.." points of friendly players' health with a healstick."
	ACHIEVEMENT.Icon			= "achievements/incursion"

	local total = ACHIEVEMENT:GetValue("total", 0)
	function ACHIEVEMENT:ReceiveValue(value)
		if total >= target then return end
		
		total = math.min(total + value, target)
		self:SetValue("total", total)
		self:Update(total / target, math.floor(total) .. "/" .. target)
	end
	
	ACHIEVEMENT:Register(total / target, math.floor(total) .. "/" .. target)
end
